//
//  SureTZViewController.m
//  集金金融
//
//  Created by 李东晓 on 15/11/28.
//  Copyright © 2015年 李东晓. All rights reserved.
//

#import "SureTZViewController.h"
#import "SureAgainViewController.h"
@interface SureTZViewController ()

@property (strong, nonatomic) IBOutlet UIButton *ButXYB;


@end

@implementation SureTZViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    [self.view setBackgroundColor:RGBAColor(246, 246, 246, 1)];
    [_ButXYB.layer setCornerRadius:3];
    [_ButXYB.layer setMasksToBounds:YES];
    
    
    [self setTitle:@"确认投资信息"];
    [self BackButton];
    
}
#pragma 返回按钮
-(void)BackButton
{
    UIButton * button = [UIButton buttonWithType:UIButtonTypeCustom];
    [button setFrame:CGRectMake(0, 0,13,20)];
    
    [button setBackgroundColor:[UIColor clearColor]];
    
    [button setImage:[UIImage imageNamed:@"navigation_back"] forState:UIControlStateNormal];
    
    [button addTarget:self action:@selector(BackClick) forControlEvents:UIControlEventTouchUpInside];
    
    UIBarButtonItem * barbutton = [[UIBarButtonItem alloc]initWithCustomView:button];
    
    self.navigationItem.leftBarButtonItem = barbutton;
    
}
#pragma 返回按钮的点击方法
-(void)BackClick
{
    [self.navigationController popViewControllerAnimated:YES];
}

- (IBAction)ButtonNext {
    NSLog(@"下一步");
    SureAgainViewController * again = [[SureAgainViewController alloc]init];
    [self.navigationController pushViewController:again animated:YES];
    
}












- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
